#--------------------------------------------------------------------------------------------------
# 说明：所有Project 均要包含的信息
# 日期：2019-9-23
#--------------------------------------------------------------------------------------------------


# config
CONFIG += debug_and_release c++11
CONFIG += build_all

DEV_HOME = $$PWD/../

#产品版本
HMP_DEV_HOME  = $$PWD/../
INCLUDE_DIR = $${HMP_DEV_HOME}/include/

DEFINES += Q_COMPILER_UNIFORM_INIT

contains(DEFINES,MINGW_HAS_SECURE_API=1){
    contains(QT_ARCT,i386){
        DEST_DIR_D = $${HMP_DEV_HOME}/DBINX32_MGW_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}
        DEST_DIR_R = $${HMP_DEV_HOME}/RBINX32_MGW_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}
        PLUGIN_BIN_DIR = $${HMP_DEV_HOME}/DBINX32_MGW_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}/plugins
        PLUGIN_RIN_DIR = $${HMP_DEV_HOME}/RBINX32_MGW_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}/plugins
    }
    else{
        DEST_DIR_D = $${HMP_DEV_HOME}/DBINX64_MGW_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}
        DEST_DIR_R = $${HMP_DEV_HOME}/RBINX64_MGW_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}
        PLUGIN_BIN_DIR = $${HMP_DEV_HOME}/DBINX64_MGW_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}/plugins
        PLUGIN_RIN_DIR = $${HMP_DEV_HOME}/RBINX64_MGW_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}/plugins
    }
}
else{
    contains(QT_ARCT,i386){
        DEST_DIR_D = $${HMP_DEV_HOME}/DBINX32_MVC_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}
        DEST_DIR_R = $${HMP_DEV_HOME}/RBINX32_MVC_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}
        PLUGIN_BIN_DIR = $${HMP_DEV_HOME}/DBINX32_MVC_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}/plugins
        PLUGIN_RIN_DIR = $${HMP_DEV_HOME}/RBINX32_MVC_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}/plugins
    }
    else{
        DEST_DIR_D = $${HMP_DEV_HOME}/DBINX64_MVC_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}
        DEST_DIR_R = $${HMP_DEV_HOME}/RBINX64_MVC_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}
        PLUGIN_BIN_DIR = $${HMP_DEV_HOME}/DBINX64_MVC_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}/plugins
        PLUGIN_RIN_DIR = $${HMP_DEV_HOME}/RBINX64_MVC_QT$${QT_MAJOR_VERSION}$${QT_MINOR_VERSION}$${QT_PATCH_VERSION}/plugins
    }
}


#DEST_DIR_D = $${HMP_DEV_HOME}/dbin
#DEST_DIR_R = $${HMP_DEV_HOME}/rbin
#PLUGIN_BIN_DIR = $${HMP_DEV_HOME}/dbin/plugins
#PLUGIN_RIN_DIR = $${HMP_DEV_HOME}/rbin/plugins


INCLUDEPATH += ./
INCLUDEPATH += ./service
INCLUDEPATH += ./HMPCore
INCLUDEPATH += ./HMPBundleFrame


CONFIG(debug,debug|release){
DESTDIR = $${DEST_DIR_D}
}
CONFIG(release,debug|release){
DESTDIR = $${DEST_DIR_R}
}

#CODE    GBK  UTF-8  UTF-16BE
win32{
    CODECFORSRC=GBK
    CONFIG += c++11

}else:unix{
    CODECFORSRC=UTF-8
    QMAKE_CXXFLAGS += -std=c++0x
}

#MY_VERSION       = 1.0.0
MY_VERSIONS  = $$split(MY_VERSION, ".")
MY_VER_MAJOR = $$member(MY_VERSIONS, 0)
MY_VER_MINOR = $$member(MY_VERSIONS, 1)
MY_VER_PATCH = $$member(MY_VERSIONS, 2)
VERSION = $${MY_VERSION}

#MY_VERSION       = 1.0.0
#VERSION = $${MY_VERSION}

#产品信息说明
QMAKE_TARGET_COMPANY    = KT Coo.,ltp.
QMAKE_TARGET_PRODUCT    = H Mission Planning Frame
QMAKE_TARGET_DESCRIPTION= A ToolBox For H Mission Planning.
QMAKE_TARGET_COPYRIGHT  = copyright (C) 2022 KT Coo.,ltp.

